package com.rerun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rerun.common.util.JsonDateFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * The type Watched resume.
 */
@TableName("watched_resume")
public class WatchedResume extends Model<WatchedResume> {

  private static final long serialVersionUID = 1830749510348016566L;
  @TableId(type = IdType.UUID)
  private String id;
  private long parkId;
  private String memberId;
  @JsonSerialize(using=JsonDateFormat.class)
  private Date createTime;


    /**
     * Gets id.
     *
     * @return the id
     */
    public String getId() {
    return id;
  }

    /**
     * Sets id.
     *
     * @param id the id
     */
    public void setId(String id) {
    this.id = id;
  }


    /**
     * Gets park id.
     *
     * @return the park id
     */
    public long getParkId() {
    return parkId;
  }

    /**
     * Sets park id.
     *
     * @param parkId the park id
     */
    public void setParkId(long parkId) {
    this.parkId = parkId;
  }


    /**
     * Gets member id.
     *
     * @return the member id
     */
    public String getMemberId() {
    return memberId;
  }

    /**
     * Sets member id.
     *
     * @param memberId the member id
     */
    public void setMemberId(String memberId) {
    this.memberId = memberId;
  }


    /**
     * Gets create time.
     *
     * @return the create time
     */
    public Date getCreateTime() {
    return createTime;
  }

    /**
     * Sets create time.
     *
     * @param createTime the create time
     */
    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  @Override
  protected Serializable pkVal() {
    return this.id;
  }

  @Override
  public String toString() {
    return "{" +
            "id:" + id +
            ", parkId:" + parkId +
            ", memberId:" + memberId +
            ", createTime:" + createTime +
            '}';
  }
}
